

#ifndef _TF_GEOM_ALGORITHM_
#define _TF_GEOM_ALGORITHM_

#include "tf_Common.h"
#include "tf_Point.h"
#include "tf_Line.h"
 
/*some function about point begin*/
dllDeclspec	double GetTwoPointDis(double pt1[3],double pt2[3]);
dllDeclspec	double GetTwoPointDis(TfPoint pt1,TfPoint pt2);

/*some function about point end*/

dllDeclspec double GetLineLength(TfLine &Line);

dllDeclspec double GetAngleFromSinVCosV(double sinV,double cosV);

/*some function about vector*/
void UnitVector(double v[3]);
//we also need one class about LCS
void InitMatrix(double matrix[4][4]);
void PointPlusMatrix(double pt[3],double matrix[4][4],double ptResult[3]);
void InverseMatrix(double a[], int n);
void Martrix4444(double a[][4],double b[][4],double c[][4]);
void CopyMartrix(double matrixa[4][4],double matrixb[4][4] )/*a = b*/;


dllDeclspec int GetModelsBox(double &minX,double &minY,double &minZ,double &maxX,double &maxY,double &maxZ);


#endif

